package com.xuxk.project.util;

/**
 * @author xuxk
 *  错误返回体
 * @param <T>
 */
public class ErrResponseBodyVo<T> {

    /**
     * 业务错误码
     */
    private int code;
    /**
     * 错误信息
     */
    private String msg;
    /**
     * 业务系统
     */
    private String sys;
    /**
     * 详情
     */
    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getSys() {
        return sys;
    }

    public void setSys(String sys) {
        this.sys = sys;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ErrResponseBodyVo{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", sys='" + sys + '\'' +
                ", data=" + data +
                '}';
    }
}
